package proxy;

public class Main {
    public static void main(String[] args) {

        IVehical car = new Car();
        VehicalProxy proxy = new VehicalProxy(car);

        IVehical2 proxyObj = proxy.create(IVehical2.class);
        proxyObj.run();
         proxyObj.aaa();//aaa找不到实现类,将报错.
    }
}